package com.lagou.ex.mybatis.common.model.resp;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;

@Data
public class BaseResp {
    /**
     * 响应码
     */
    private String retCode;
    /**
     * 响应详情
     */
    private String retMsg;
    /**
     * 响应数据
     */
    private Object data;

    public ToStringBuilder buildString() {
        return new ToStringBuilder(this)
                .append("retCode", retCode)
                .append("retMsg", retMsg)
                .append("data", data)
                ;
    }

}
